$OpenBSD: patch-gonzui_bdbdbm_rb,v 1.1 2011/04/08 06:22:51 jasper Exp $

Allow this to work with newer ruby-bdb.
From FreeBSD.

--- gonzui/bdbdbm.rb.orig	Wed Mar  2 10:26:12 2005
+++ gonzui/bdbdbm.rb	Thu Apr  7 23:03:31 2011
@@ -74,6 +74,12 @@ module Gonzui
   end
 
   module BDBExtension
+    def copies(val)
+      duplicates val, false
+    rescue
+      duplicates val
+    end
+
     def each_by_prefix(prefix)
       values = []
       cursor = self.cursor
